<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<!doctype html>
<html lang="zh">
<head>
    <title>编辑权限</title>
    <%@include file="/common/header.jspf"%>
</head>
<body>
<div class="form-wrap" >
    <form id="athorityForm" method="post">
        <input type="hidden" name="id" value="${authority.id}"  />
        <input type="hidden" id="authorityGroupId" value="${authority.groupId}"  />
        <div class="input-wrap">
            <label class="label-top">权限组:</label>
            <input id="groupList" class="easyui-combobox formInput" style="width: 360px;" name="groupId"  editable="false">
        </div>
        <div class="input-wrap">
            <label class="label-top">权限标识:</label>
            <input class="easyui-textbox formInput" type="text"  style="width: 360px;" name="code" data-options="required:true" value="${authority.code==null?"":authority.code}">
        </div>
        <div class="input-wrap">
            <label class="label-top">权限名称:</label>
            <input class="easyui-textbox formInput" type="text"  style="width: 360px;" name="name"  data-options="required:true" value="${authority.name==null?"":authority.name}">
        </div>
        <div class="input-wrap">
            <label class="label-top">启用状态:</label>
            <select class="easyui-combobox  formInput" name="useState" style="width: 360px;"  data-options="required:true,editable:false,selectOnNavigation:true">
                <option value="1" <c:if test="${authority.useState==1}">selected="selected"</c:if> >启用</option>
                <option value="0" <c:if test="${authority.useState==0}">selected="selected"</c:if> >未启用</option>
            </select>
        </div>
        <div class="input-wrap">
            <label class="label-top">排序号:</label>
            <input class="easyui-numberspinner formInput" type="text" style="width: 360px;"  name="sort" value="0"   value="${authority.sort==null?"0":authority.sort}">
        </div>

        <div class="input-wrap">
            <label class="label-top">备注:</label>
            <input class="easyui-textbox formInput" type="text" name="remarks"  data-options="multiline:true" style="width: 360px;height:80px" value="${authority.remarks==null?"":authority.remarks}">
        </div>
    </form>
    <div style="text-align:center;padding:5px">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg" id="saveAuthority" >保存</a>
    </div>
</div>
<script type="text/javascript" src="${ctx}/resources/js/permission/authority/edit.js"></script>
</body>
</html>
